package com.xin.mapper;

import com.alibaba.fastjson.JSONObject;
import com.xin.entity.STeacherRoleRelation;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
  * 角色关系表 Mapper 接口
 * </p>
 *
 * @author l1
 * @since 2017-12-05
 */
public interface STeacherRoleRelationDao extends BaseMapper<STeacherRoleRelation> {
    public Integer queryRoleCount(JSONObject param);

    public List<JSONObject> queryRole(JSONObject param);

    @Select("SELECT role_id from s_teacher_role_relation WHERE teacher_id = #{teacherId}")
    public List<Integer> queryRoleByTeacherId(String teacherId);
}